package com.example.exception;

import com.example.entity.result.Result;

public class OperatorException extends RuntimeException{
    private static final long serialVersionUID = -3265419124411634033L;
    private int code = Result.ERROR;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public OperatorException() {
        super();
    }

    public OperatorException(String message) {
        super(message);
    }
    public OperatorException(String message,int code) {
        super(message);
        this.code = code;
    }
    public OperatorException(String message, Throwable cause) {
        super(message, cause);
    }

    public OperatorException(Throwable cause) {
        super(cause);
    }

    protected OperatorException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
